
package swa2012.telco.broker;

/**
 * Please modify this class to meet your needs
 * This class is not complete
 */

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 * This class was generated by Apache CXF 2.6.0
 * 2012-05-31T12:09:04.542+02:00
 * Generated source version: 2.6.0
 * 
 */
public final class Broker_BrokerPort_Client {

    private static final QName SERVICE_NAME = new QName("http://broker.telco.swa2012/", "BrokerService");

    private Broker_BrokerPort_Client() {
    }

    public static void main(String args[]) throws java.lang.Exception {
        URL wsdlURL = BrokerService.WSDL_LOCATION;
        if (args.length > 0 && args[0] != null && !"".equals(args[0])) { 
            File wsdlFile = new File(args[0]);
            try {
                if (wsdlFile.exists()) {
                    wsdlURL = wsdlFile.toURI().toURL();
                } else {
                    wsdlURL = new URL(args[0]);
                }
            } catch (MalformedURLException e) {
                e.printStackTrace();
            }
        }
      
        BrokerService ss = new BrokerService(wsdlURL, SERVICE_NAME);
        Broker port = ss.getBrokerPort();  
        
        {
        System.out.println("Invoking listClients...");
        java.util.List<swa2012.telco.broker.Client> _listClients__return = port.listClients();
        System.out.println("listClients.result=" + _listClients__return);


        }
        {
        System.out.println("Invoking registerProvider...");
        swa2012.telco.broker.Provider _registerProvider_arg0 = null;
        swa2012.telco.broker.BrokerRegistrationStatus _registerProvider__return = port.registerProvider(_registerProvider_arg0);
        System.out.println("registerProvider.result=" + _registerProvider__return);


        }
        {
        System.out.println("Invoking ping...");
        boolean _ping__return = port.ping();
        System.out.println("ping.result=" + _ping__return);


        }
        {
        System.out.println("Invoking deregisterProvider...");
        swa2012.telco.broker.Provider _deregisterProvider_arg0 = null;
        swa2012.telco.broker.BrokerRegistrationStatus _deregisterProvider__return = port.deregisterProvider(_deregisterProvider_arg0);
        System.out.println("deregisterProvider.result=" + _deregisterProvider__return);


        }
        {
        System.out.println("Invoking listProviders...");
        java.util.List<swa2012.telco.broker.Provider> _listProviders__return = port.listProviders();
        System.out.println("listProviders.result=" + _listProviders__return);


        }
        {
        System.out.println("Invoking receiveMessage...");
        swa2012.telco.broker.Message _receiveMessage_arg0 = null;
        swa2012.telco.broker.ReceiveMessageStatus _receiveMessage__return = port.receiveMessage(_receiveMessage_arg0);
        System.out.println("receiveMessage.result=" + _receiveMessage__return);


        }
        {
        System.out.println("Invoking sendMessage...");
        swa2012.telco.broker.Message _sendMessage_arg0 = null;
        swa2012.telco.broker.BrokerSendMessageStatus _sendMessage__return = port.sendMessage(_sendMessage_arg0);
        System.out.println("sendMessage.result=" + _sendMessage__return);


        }

        System.exit(0);
    }

}
